import dayjs from 'dayjs';
// 格式化日期
const formatDate = (date) => {
  if (!date) {
    return '';
  }
  return dayjs(date).format('YYYY-MM-DD HH:mm:ss');
};
export const baseColumns = [
  {
    title: "用户名",
    dataIndex: "username",
    minWidth: 150,
  },
  {
    title: "昵称",
    dataIndex: "nickname",
    minWidth: 150,
  },
  {
    title: "邮箱",
    dataIndex: "email",
    minWidth: 150,
  },
  {
    title: "手机号",
    dataIndex: "phone",
    minWidth: 150,
  },
  {
    title: "状态",
    dataIndex: "status",
    minWidth: 150,
  },
  {
    title: "创建时间",
    dataIndex: "createdAt",
    minWidth: 200,
    customRender: ({ text }) => formatDate(text),
  },



]
